package oo.shootgame;
import java.awt.image.BufferedImage; //图片的数据类型




/*飞行物类*/
public abstract class Plane {
	protected int life;
	protected int x;
	protected int y;
	protected int width;
	protected int height;
	protected BufferedImage image;
    abstract void step();
    public boolean shootby(Bullet bb){    	
		if(this.x<bb.x && bb.x<this.x+width && this.y<bb.y && bb.y<this.y+height){
			return true;
		}else{
			return false;
		}
	}

}
